package jpa.entitys.promis.common;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the VW_SYNC_INV_RENTAL database table.
 * 
 */
@Entity
@Table(name="VW_SYNC_INV_RENTAL")
@NamedQueries({
    @NamedQuery(name = "VwSyncInvRental.findAll", query = " SELECT c FROM VwSyncInvRental c "),
    @NamedQuery(name = "VwSyncInvRental.findById", query = " SELECT c FROM VwSyncInvRental c WHERE c.invoicePkId = :Id "),
    @NamedQuery(name = "VwSyncInvRental.findByStatus", query = " SELECT c FROM VwSyncInvRental c WHERE c.status = :status And c.syncIsstaging = :syncIsstaging "),
    @NamedQuery(name = "VwSyncInvRental.findByRefContrDocumentNo", query = " SELECT c FROM VwSyncInvRental c WHERE c.company = :company And c.project =:project And c.contractRefNo = :contractRefNo And c.documentNo = :documentNo And c.status = :status And c.syncIsstaging = :syncIsstaging"),
    @NamedQuery(name = "VwSyncInvRental.findByWithOutDocumentNo", query = " SELECT c FROM VwSyncInvRental c WHERE c.company = :company And c.project =:project And c.documentNo = :documentNo And c.status = :status And c.syncIsstaging = :syncIsstaging")
})
public class VwSyncInvRental extends jpa.entitys.common.CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="INVOICE_PK_ID", length=4000)
	private String invoicePkId;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}
	
	@Column(name="INVOICE_DETAILS_ID", length=4000)
	private String invoiceDetailsId;
	
	@Column(name="ADVANCE_DEPOSIT", length=1)
	private String advanceDeposit;

	@Column(precision=16, scale=2)
	private BigDecimal amount;

	@Column(name="BUILDING_PHASE_CODE", length=30)
	private String buildingPhaseCode;

	@Column(name="CHARGE_CODE", length=2)
	private String chargeCode;

	@Column(nullable=false, length=2)
	private String company;

	@Column(name="CONTRACT_REF_NO", length=4000)
	private String contractRefNo;

	@Column(name="CREATED_BY")
	private String createdBy;

	@Column(name="CREATED_BY_NAME", length=4000)
	private String createdByName;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(length=5)
	private String currency;

	@Column(name="CUSTOMER_ADDRESS_CODE", precision=2)
	private BigDecimal customerAddressCode;

	@Column(name="CUSTOMER_CODE", length=8)
	private String customerCode;

	@Column(length=4000)
	private String description;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="DUE_DATE")
	private Date dueDate;

	@Column(name="EXCHANGE_RATE", precision=22)
	private BigDecimal exchangeRate;

	@Column(name="FLOOR_ZONE_CODE", length=30)
	private String floorZoneCode;

	@Column(name="INTERFACE_NO", length=4000)
	private String interfaceNo;
	
    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="INVOICE_DATE")
	private Date invoiceDate;	

	@Column(name="INVOICE_ID", length=4000)
	private String invoiceId;

	@Column(name="INVOICE_NO", nullable=false, precision=6)
	private Long invoiceNo;

	@Column(name="INVOICE_SEQ_NO", nullable=false, precision=6)
	private BigDecimal invoiceSeqNo;

	@Column(name="INVOICE_SERIES", nullable=false, length=4)
	private String invoiceSeries;

	@Column(name="INVOICE_TYPE", nullable=false, length=2)
	private String invoiceType;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

	@Column(name="LAST_UPD_BY_NAME", length=4000)
	private String lastUpdByName;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="METER_TYPE", length=2)
	private String meterType;

	@Column(name="NET_INVOICE", precision=16, scale=2)
	private BigDecimal netInvoice;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="POSTING_DATE")
	private Date postingDate;

	@Column(length=30)
	private String project;

	@Column(length=300)
	private String remarks;

	@Column(name="SAP_COMPANY_CODE", length=4000)
	private String sapCompanyCode;

	@Column(name="SAP_PLANT_CODE", length=4000)
	private String sapPlantCode;

	@Column(name="SERVICE_VAT_FLAG", length=1)
	private String serviceVatFlag;

	@Column(length=1)
	private String status;

	@Column(name="SYNC_CREATEDBY", length=100)
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY", length=100)
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO", length=100)
	private String syncExternalRefNo;

	@Column(name="SYNC_ISSTAGING", length=1)
	private String syncIsstaging;

	@Column(name="SYNC_ISSYNC", length=1)
	private String syncIssync;

	@Column(name="SYNC_UPDATEDBY", length=100)
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="TAX_TYPE_CODE", length=2)
	private String taxTypeCode;

	@Column(name="UNIT_NUMBER", length=30)
	private String unitNumber;

	@Column(name="VAT_AMOUNT", precision=12, scale=2)
	private BigDecimal vatAmount;

	@Column(name="VAT_CODE", length=2)
	private String vatCode;

	@Column(name="WHT_AMOUNT", precision=16, scale=2)
	private BigDecimal whtAmount;

	@Column(name="WHT_BASE_AMOUNT", precision=16, scale=2)
	private BigDecimal whtBaseAmount;
	
	@Column(name="DOCUMENT_NO")
	private String documentNo;
	
	
    /**
	 * @return the invoicePkId
	 */
	public String getInvoicePkId() {
		return invoicePkId;
	}

	/**
	 * @param invoicePkId the invoicePkId to set
	 */
	public void setInvoicePkId(String invoicePkId) {
		this.invoicePkId = invoicePkId;
	}

	/**
	 * @return the documentNo
	 */
	public String getDocumentNo() {
		return documentNo;
	}

	/**
	 * @param documentNo the documentNo to set
	 */
	public void setDocumentNo(String documentNo) {
		this.documentNo = documentNo;
	}

    public VwSyncInvRental() {
    }

	public String getAdvanceDeposit() {
		return this.advanceDeposit;
	}

	public void setAdvanceDeposit(String advanceDeposit) {
		this.advanceDeposit = advanceDeposit;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getBuildingPhaseCode() {
		return this.buildingPhaseCode;
	}

	public void setBuildingPhaseCode(String buildingPhaseCode) {
		this.buildingPhaseCode = buildingPhaseCode;
	}

	public String getChargeCode() {
		return this.chargeCode;
	}

	public void setChargeCode(String chargeCode) {
		this.chargeCode = chargeCode;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getContractRefNo() {
		return this.contractRefNo;
	}

	public void setContractRefNo(String contractRefNo) {
		this.contractRefNo = contractRefNo;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedByName() {
		return this.createdByName;
	}

	public void setCreatedByName(String createdByName) {
		this.createdByName = createdByName;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getCurrency() {
		return this.currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public BigDecimal getCustomerAddressCode() {
		return this.customerAddressCode;
	}

	public void setCustomerAddressCode(BigDecimal customerAddressCode) {
		this.customerAddressCode = customerAddressCode;
	}

	public String getCustomerCode() {
		return this.customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getDueDate() {
		return this.dueDate;
	}

	public void setDueDate(Date dueDate) {
		this.dueDate = dueDate;
	}

	public BigDecimal getExchangeRate() {
		return this.exchangeRate;
	}

	public void setExchangeRate(BigDecimal exchangeRate) {
		this.exchangeRate = exchangeRate;
	}

	public String getFloorZoneCode() {
		return this.floorZoneCode;
	}

	public void setFloorZoneCode(String floorZoneCode) {
		this.floorZoneCode = floorZoneCode;
	}

	public String getInterfaceNo() {
		return this.interfaceNo;
	}

	public void setInterfaceNo(String interfaceNo) {
		this.interfaceNo = interfaceNo;
	}

	public Date getInvoiceDate() {
		return this.invoiceDate;
	}

	public void setInvoiceDate(Date invoiceDate) {
		this.invoiceDate = invoiceDate;
	}

	public String getInvoiceDetailsId() {
		return this.invoiceDetailsId;
	}

	public void setInvoiceDetailsId(String invoiceDetailsId) {
		this.invoiceDetailsId = invoiceDetailsId;
	}

	public String getInvoiceId() {
		return this.invoiceId;
	}

	public void setInvoiceId(String invoiceId) {
		this.invoiceId = invoiceId;
	}

	public Long getInvoiceNo() {
		return this.invoiceNo;
	}

	public void setInvoiceNo(Long invoiceNo) {
		this.invoiceNo = invoiceNo;
	}

	public BigDecimal getInvoiceSeqNo() {
		return this.invoiceSeqNo;
	}

	public void setInvoiceSeqNo(BigDecimal invoiceSeqNo) {
		this.invoiceSeqNo = invoiceSeqNo;
	}

	public String getInvoiceSeries() {
		return this.invoiceSeries;
	}

	public void setInvoiceSeries(String invoiceSeries) {
		this.invoiceSeries = invoiceSeries;
	}

	public String getInvoiceType() {
		return this.invoiceType;
	}

	public void setInvoiceType(String invoiceType) {
		this.invoiceType = invoiceType;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public String getLastUpdByName() {
		return this.lastUpdByName;
	}

	public void setLastUpdByName(String lastUpdByName) {
		this.lastUpdByName = lastUpdByName;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public String getMeterType() {
		return this.meterType;
	}

	public void setMeterType(String meterType) {
		this.meterType = meterType;
	}

	public BigDecimal getNetInvoice() {
		return this.netInvoice;
	}

	public void setNetInvoice(BigDecimal netInvoice) {
		this.netInvoice = netInvoice;
	}

	public Date getPostingDate() {
		return this.postingDate;
	}

	public void setPostingDate(Date postingDate) {
		this.postingDate = postingDate;
	}

	public String getProject() {
		return this.project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getSapCompanyCode() {
		return this.sapCompanyCode;
	}

	public void setSapCompanyCode(String sapCompanyCode) {
		this.sapCompanyCode = sapCompanyCode;
	}

	public String getSapPlantCode() {
		return this.sapPlantCode;
	}

	public void setSapPlantCode(String sapPlantCode) {
		this.sapPlantCode = sapPlantCode;
	}

	public String getServiceVatFlag() {
		return this.serviceVatFlag;
	}

	public void setServiceVatFlag(String serviceVatFlag) {
		this.serviceVatFlag = serviceVatFlag;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncIsstaging() {
		return this.syncIsstaging;
	}

	public void setSyncIsstaging(String syncIsstaging) {
		this.syncIsstaging = syncIsstaging;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public String getTaxTypeCode() {
		return this.taxTypeCode;
	}

	public void setTaxTypeCode(String taxTypeCode) {
		this.taxTypeCode = taxTypeCode;
	}

	public String getUnitNumber() {
		return this.unitNumber;
	}

	public void setUnitNumber(String unitNumber) {
		this.unitNumber = unitNumber;
	}

	public BigDecimal getVatAmount() {
		return this.vatAmount;
	}

	public void setVatAmount(BigDecimal vatAmount) {
		this.vatAmount = vatAmount;
	}

	public String getVatCode() {
		return this.vatCode;
	}

	public void setVatCode(String vatCode) {
		this.vatCode = vatCode;
	}

	public BigDecimal getWhtAmount() {
		return this.whtAmount;
	}

	public void setWhtAmount(BigDecimal whtAmount) {
		this.whtAmount = whtAmount;
	}

	public BigDecimal getWhtBaseAmount() {
		return this.whtBaseAmount;
	}

	public void setWhtBaseAmount(BigDecimal whtBaseAmount) {
		this.whtBaseAmount = whtBaseAmount;
	}

}